package com.flying.fish;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Description
 * @Author jianglong
 * @Date 2020/05/19
 * @Version V1.0
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableScheduling
//@PropertySource("classpath:application.yml")
public class DynamicGatewayApplication {

    /**
     Spring Cloud Gateway 是 Spring Cloud 的一个全新项目，该项目是基于 Spring 5.0;Spring Boot 2.0 和 Project Reactor 等技术开发的网关，旨在为微服务架构提供一种简单有效的统一的 API 路由管理方式
     注意版本组合：
     Spring-Cloud               Spring-Boot
     =================          ==============
     Hoxton.SR4                 2.2.6.RELEASE
     Hoxton.SR1                 2.2.1.RELEASE
     Greenwich.SR3              2.1.1.RELEASE
     Finchley.RELEASE           2.0.3.RELEASE

     查看路由信息：http://127.0.0.1:8771/actuator/gateway/routes
     查看过滤器工厂列表：http://127.0.0.1:8771/actuator/gateway/routefilters
     查看日志等级：http://127.0.0.1:8771/actuator/loggers
     */

    /**
     * 启动入口
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication application =new SpringApplication(DynamicGatewayApplication.class);
        application.run(args);
    }

}
